﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedGenomics.Workbench.Views.WindowsForms
{
    public class HelpIcon : System.Windows.Forms.PictureBox
    {
        public HelpIcon(string helpTopic)
        {
            this.InitializeComponent();
            this.HelpTopic = helpTopic;
            this.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            (new System.Windows.Forms.ToolTip()).SetToolTip(this, "Help");
        }

        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HelpIcon));
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            this.SuspendLayout();
            // 
            // HelpIcon
            // 
            this.Image = ((System.Drawing.Image)(resources.GetObject("$this.Image")));
            this.Size = new System.Drawing.Size(13, 13);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
            this.ResumeLayout(false);

        }

        public string HelpTopic { get; private set; }
    }
}
